<div class="card">
    <titlemenu></titlemenu>
    <div activate-input activate-select class="body">
        <div class="table-responsive list-table-panel">
            <div class="list-table-title">
                <div class="table-title" style="text-align: center;width: 80%;font-weight: bold;font-size: 25px;">
                    {{userModel.name}}<span style="color: #636363"> (发展党员进度管理）</span>
                </div>
                <div class="table-tool">
                    <button type="button" class="btn btn-default1" ng-click="pageredict();">工作指引</button>
                    <button type="button" class="btn btn-default" ng-click="pagechange();">返回</button>
                </div>
            </div>
            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                <thead>
                <tr>
                    <th>序号</th>
                    <th>发展进度</th>
                    <th>具体进度</th>
                    <th>实际完成时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="it in dataList">
                    <td rowspan="{{it.FLOWCOUNT}}" ng-if="it.MINSORT==null || it.MINSORT==it.SORT" class="text-center">{{it.PROCESSSORT}}</td>
                    <td rowspan="{{it.FLOWCOUNT}}" ng-if="it.MINSORT==null || it.MINSORT==it.SORT">{{it.PROCESSNAME}}</td>
                    <td>{{it.SORT}}.{{it.FLOWNAME}}</td>
                    <td ng-class="(it.ACCOMPLISHTDAYS-it.WARNDAYS)>0 && it.NEXTSORT==it.SORT?'col_red':''">{{it.ACCOMPLISHTIME | date:'yyyy-MM-dd'}}</td>
                    <td>
                        <!--发布-->
                        <a ng-if="it.NEXTSORT>=it.SORT || $index==0 || it.NOWSORT==it.MAXSORT || it.ACCOMPLISHTIME!=null" ng-click="update(it.URL,it.FLOWID)">更新</a>

                        <!--测试-->
                        <!--<a ng-click="update(it.URL,it.FLOWID)">更新</a>-->

                        <a ng-if="it.ACCOMPLISHTIME!=null" ng-click="delete(it.URL,it.FLOWID)">删除</a>

                        <a ng-click="showGuidelines(it.PROCESSNAME,it.FLOWID)">步骤指引</a>
                    </td>
                </tr>
                <tr ng-if="dataList.length<=0">
                    <td colspan="5" style="text-align:center">暂无数据</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!--<div class="form_foot" style="margin-top: 10px;">
            <button type="button" class="btn btn-default" ng-click="pagechange();">返回</button>
        </div>-->
    </div>
</div>
<style>
    .table > tbody > tr:nth-of-type(odd){
        background-color: white;
    }

    .col_red{
        box-shadow: inset 0 0 1px #951f1f,inset 0 0 20px rgba(251, 0, 0, 0.5);
    }
</style>